<?php
require_once($_SERVER["DOCUMENT_ROOT"] . "/../sys/libs/init.lib");
require_once($_SERVER["DOCUMENT_ROOT"] . "/../sys/libs/pdf.lib");

if (strtolower($_REQUEST["exportas"]) == "pdf") {



$pdf = new Invoice();
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->billFrom('Christian Biggins \n 10/20 Darley Street \n Mona Vale');
$pdf->Output("Invoice.pdf", "D");
	
}

?>
